package com.foreknow.demo03;
import java.util.Scanner;
//编写一个程序，求整数n的阶乘，例如5的阶乘是1*2*3*4*5
public class Zuoye0603 {
    public static void main(String[] args) {
        int i = 5;
        int j = 4;
        for (j = 4;j>=1;j--){
            i = i * j;
        }
        System.out.println(i);
    }
}
